package cn.exrick.xboot.shop.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * VIEW
 * </p>
 *
 * @author yuhaifei
 * @since 2022-10-29
 */
@Data
@TableName("view_article")
@ApiModel(value = "VIEW")
public class ViewArticle implements Serializable {

        private static final long serialVersionUID = 1L;

        /**
         *
         */
        @TableField(value = "id")
        @ApiModelProperty(value = "")
        private Integer id;

        /**
         * 标题
         */
        @TableField(value = "title")
        @ApiModelProperty(value = "标题")
        private String title;

        /**
         * 图片
         */
        @TableField(value = "img_url")
        @ApiModelProperty(value = "图片")
        private String imgUrl;

        /**
         * 标签
         */
        @TableField(value = "tags")
        @ApiModelProperty(value = "标签")
        private String tags;

        /**
         * 内容
         */
        @TableField(value = "content")
        @ApiModelProperty(value = "内容")
        private String content;

        /**
         * 小程序用户id
         */
        @TableField(value = "member_id")
        @ApiModelProperty(value = "小程序用户id")
        private String memberId;

        /**
         * 小程序openid
         */
        @TableField(value = "open_id")
        @ApiModelProperty(value = "小程序openid")
        private String openId;

        /**
         * 头像
         */
        @TableField(value = "avatar")
        @ApiModelProperty(value = "头像")
        private String avatar;

        /**
         * 昵称
         */
        @TableField(value = "nickname")
        @ApiModelProperty(value = "昵称")
        private String nickname;

        /**
         * 手机
         */
        @TableField(value = "mobile")
        @ApiModelProperty(value = "手机")
        private String mobile;

        /**
         * 创建时间
         */
        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @TableField(value = "create_time")
        @ApiModelProperty(value = "创建时间")
        private Date createTime;

        /**
         * 编辑时间
         */
        @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @TableField(value = "modify_time")
        @ApiModelProperty(value = "编辑时间")
        private Date modifyTime;

        /**
         * 删除标记
         */
        @TableLogic
        @TableField(value = "del_flag")
        @ApiModelProperty(value = "删除标记")
        private Integer delFlag;


        /**
         *
         */
        @TableField(value = "like_num")
        @ApiModelProperty(value = "")
        private Long likeNum;

        /**
         *
         */
        @TableField(value = "comment_num")
        @ApiModelProperty(value = "")
        private Long commentNum;


        /**
         * 用户头像
         */
        @TableField(value = "app_avatar")
        @ApiModelProperty(value = "用户头像")
        private String appAvatar;



        /**
         * 搜索值
         */
        @TableField(exist = false)
        private String value;


        /**
         * 喜欢的用户id
         */
        @TableField(exist = false)
        private String likeUserId;

        /**
         * 是否喜欢
         */
        @TableField(exist = false)
        private String isLike;

        /**
         * 是否收藏
         */
        @TableField(exist = false)
        private String isCollect;
}

